package net.sinmetal.twitcockpit.controller.admin.config.authUser;

import java.util.List;

import net.sinmetal.twitcockpit.service.ConfigService;

import org.slim3.controller.Controller;
import org.slim3.controller.Navigation;

/**
 * AdminConfigAuthUser
 *
 * @author Sinmetal
 *
 */
public class IndexController extends Controller {

    private ConfigService configService = new ConfigService();

    /**
     * AuthUser一覧表示
     */
    @Override
    public Navigation run() throws Exception {
        List<String> emails = configService.getAuthUserEmails();
        requestScope("emails", emails);
        return forward("index.jsp");
    }
}
